<?php
	echo "<form method='get' action='regist_to_base.php'>";

	$_SESSION['lname'] = $_POST["lname"];
	$_SESSION['fname'] = $_POST["fname"];
	$_SESSION['date'] = $_POST["date"];
	$_SESSION['username'] = $_POST["username"];
	$_SESSION['password']=$_POST["password"];
?>
<div align="center">
<?php
	//elegxos gia diplotupo username
	$num=nameCheck();
	if ($num == 1)
	{
		echo"The username is already in use";
		echo "<br>";
		echo "<a href='register.php'>Click here to go back.</a>";
	}
	else
	{
		show_regist_info();
	}
?>